<?php
namespace app\admin\validate;
use think\Validate;

class Login extends Validate{
    protected $rule=[
        'name'=>'require|token',
        'password'=>'require',
        'code'=>'require|captcha',
    ];
    protected $message=[];
    protected $scene=[
        'isCode'=>['name','password','code'],
        'noCode'=>['name','password'],
    ];
}